#pragma once
#include "autoricheditctrl.h"
#include "afxwin.h"


// CHangman dialog

class CHangman : public CDialog
{
	DECLARE_DYNAMIC(CHangman)

public:
	CHangman(CWnd* pParent = NULL);   // standard constructor
	virtual ~CHangman();

// Dialog Data
	enum { IDD = IDD_HANGMAN };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

  CToolBar m_toolbar;

	DECLARE_MESSAGE_MAP()
public:
  virtual BOOL OnInitDialog();
  afx_msg void OnClickAlphabet(UINT nID);
 
  CAutoRichEditCtrl m_richCtrl;

private:
  CRect richRect;
  CRect paintRect;
  CRect artRect;
  CString artText;
  CString verseText;
  CString verseBook;
  CString guessBook;
  int ans_len;
  int guess_remaining;
  UINT wrong_guesses;


  CPen pen ; 
  CBrush * pbrush ; 
  CPen * poldpen;
  CBrush * poldbrush;

  void LoadToolBar();
  void OnPickVerse();
  void RemoveTags(CString tagStart, CString tagEnd);

	
public:
  afx_msg void OnTryAgain();
  CEdit m_editGuess;
 
  afx_msg void OnPaint();
  BOOL m_entireBible;
  afx_msg void OnRadioEntireBible();
  afx_msg void OnRadioOT();
  afx_msg void OnRadioNT();
  afx_msg void OnRadioPlaces();
  afx_msg void OnRadioPeople();

  afx_msg void OnClose();
  CStatic m_staticPic;
  virtual BOOL PreTranslateMessage(MSG* pMsg);
};
